package com.lyc.dao;

import com.lyc.pojo.Goods;
import com.lyc.pojo.GoodsInfo;
import com.lyc.pojo.GoodsKinds;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsDao {
    //查询所有商品
    public List<Goods> selectAll();
    //通过商品模糊查询selectgoodsKeyword
    public List<Goods> selectgoodsKeyword(@Param("goodsKeyword") String goodsKeyword);
    //通过一级id查二级模糊查询
    public List<GoodsKinds> selectgkid(Integer gkid);
    //通过2级id查3级模糊查询
    public List<GoodsKinds> selectgkid2(Integer gkid);
  //通过3级id查4级模糊查询
    public List<GoodsKinds> selectgkid3(Integer gkid);

    public Goods selectOne(int gid);

    public List<Goods> selectbase(int gkid);

    public GoodsInfo selectGoodsInfo(int gid);

    public List<GoodsKinds> selectid();

    public List<Goods> selectByGmiaoshu(String gmiaoshu);


    /*后台代码*/
    public int delete(int id);

    public int insert(Goods goods);

    public int update(Goods goods);

    public int deleteSelect(List<String> list);


}
